package com.itic.appbase.framework.aop;

import javax.servlet.http.HttpServletRequest;

public class RequestUtil {
	public static boolean isJsonp(HttpServletRequest request){
		return request.getRequestURI().endsWith(".jsonp")&&request.getParameter("callback")!=null&&request.getParameter("callback").length()>0;
	}
	
	public static boolean isJson(HttpServletRequest request){
		return request.getRequestURI().endsWith(".json");
	}
	
	public static boolean isConrtainMobile(HttpServletRequest request){
		return request.getRequestURI().contains("mobile");
	}
}
